<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/shop" replace>运营管理</el-breadcrumb-item>
      <el-breadcrumb-item>优惠券详情</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">优惠券详情</div>
      <el-table :data="tableData">
        <el-table-column type="index" label="序号" align="center" width="60"></el-table-column>
        <el-table-column prop="setDate" label="设置时间" align="center"></el-table-column>
        <el-table-column prop="delDate" label="删除时间" align="center"></el-table-column>
        <el-table-column prop="" label="优惠券有效期" align="center"></el-table-column>
        <el-table-column prop="" label="满减" align="center"></el-table-column>
        <el-table-column prop="" label="优惠券内容" align="center"></el-table-column>
        <el-table-column prop="" label="总数量" align="center"></el-table-column>
        <el-table-column prop="" label="已领取数量" align="center"></el-table-column>
        <el-table-column prop="" label="已过期数量" align="center"></el-table-column>
        <el-table-column label="使用详情" align="center">
          <template slot-scope="data">
            <router-link
              :to="{path: 'shop/shopDiscountUsedInfo', query: {'shopId': shopId, 'tDiscountId': data.row.tDiscountId}}">
              使用详情
            </router-link>
          </template>
        </el-table-column>
        <el-table-column prop="delDate" label="状态" align="center"></el-table-column>
      </el-table>
      <pagination @handleSize="handleSizeChange" @handleCurrent="handleCurrentChange" :maxTotal="maxTotal"></pagination>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import pagination from 'components/pagination'

  export default {
    data () {
      return {
        maxTotal: 10,
        tableData: [],
        shopId: ''
      }
    },
    created () {
      this.shopId = this.$route.query.shopId
    },
    methods: {
      handleSizeChange (val) {
      },
      handleCurrentChange (val) {
      }
    },
    components: {
      pagination
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>

</style>
